﻿using System;
using System.Collections.Generic;
using AAPL.Common;



namespace AAPL.Common.DataShapes
{
    public class BlogPost
    {
        public Guid PostGuid {get; set;}
        public int PostId { get; set; } 
        public DateTime CreatedUtc {get; set;} 
        public DateTime ModifiedUtc {get; set;} 
        public DateTime PostedUtc {get; set;} 
        public Guid BlogGuid {get; set;} 
        public string PostUrl {get; set;} 
        public string PostTitle {get; set;} 
        public string PostSummary {get; set;} 
        public string PostBody {get; set;} 
        public string AuthorName {get; set;} 
        public int Score {get; set;}
        public List<Category> Categories { get; set; }

        public BlogPost()
        {
            PostGuid = NullValues.NullGuid;
            PostId = NullValues.NullInt;
            CreatedUtc = NullValues.NullDateTime;
            ModifiedUtc = NullValues.NullDateTime;
            PostedUtc = NullValues.NullDateTime;
            BlogGuid = NullValues.NullGuid;
            PostUrl = NullValues.NullString;
            PostTitle = NullValues.NullString;
            PostSummary = NullValues.NullString;
            PostBody = NullValues.NullString;
            AuthorName = NullValues.NullString;
            Score = 0;
            Categories = null;
        }
    }
}
